package service

import (
	"azfirewall-gateway/data"
	"azfirewall-gateway/models"
	"azfirewall-gateway/utils"
)

func GetSite(domainName string) *models.Site {
	d, err := data.DBP.SiteDb.Get([]byte("SITE-"+domainName), nil)
	if d != nil {
		return data.JsonByteArrToSiteStruct(d)
	} else {
		utils.MainLog.Debug("未查询到相关站点信息["+domainName+"]，", err)
	}
	return nil
}
